import { RouteRecordRaw } from 'vue-router'
import Layout from "@/layout/index.vue";

export type PermissionRoutes = Array<RouteRecordRaw>

const permissionRoutes: PermissionRoutes = [
    {
        path: '/guide1',
        component: () => Layout,
        meta: {
            title: '数据报表',
            icon: '#iconguide'
        },
        children: [
            {
                path: 'a',
                component: () =>
                    import(
                        /* webpackChunkName: "guide" */ '@/views/guide/index.vue'
                    ),
                name: 'a',
                meta: {
                    title: '页面1',
                    icon: '#iconguide'
                }
            },
            {
                path: 'b',
                component: () =>
                    import(
                        /* webpackChunkName: "guide" */ '@/views/guide/index.vue'
                    ),
                name: 'b',
                meta: {
                    title: '页面2',
                    icon: '#iconguide'
                }
            },
            {
                path: 'c',
                component: () =>
                    import(
                        /* webpackChunkName: "guide" */ '@/views/guide/index.vue'
                    ),
                name: 'c',
                meta: {
                    title: '页面3',
                    icon: '#iconguide'
                }
            },
            {
                path: 'd',
                component: () =>
                    import(
                        /* webpackChunkName: "guide" */ '@/views/guide/index.vue'
                    ),
                name: 'd',
                meta: {
                    title: '页面4',
                    icon: '#iconguide'
                }
            },
            {
                path: 'e',
                component: () =>
                    import(
                        /* webpackChunkName: "guide" */ '@/views/guide/index.vue'
                    ),
                name: 'e',
                meta: {
                    title: '页面5',
                    icon: '#iconguide'
                }
            }
        ]
    },
    {
        path: '/guide2',
        component: () => Layout,
        meta: {
            title: '用户中心',
            icon: '#iconguide'
        },
        children: [
            {
                path: '11',
                component: () => import(/* webpackChunkName: "guide" */ '@/views/guide/index.vue'),
                name: '11',
                meta: {
                    title: '页面1',
                    icon: '#iconguide'
                }
            },
            {
                path: '2',
                component: () => import(/* webpackChunkName: "guide" */ '@/views/guide/index.vue'),
                name: '2',
                meta: {
                    title: '页面2',
                    icon: '#iconguide'
                }
            },
            {
                path: '3',
                component: () => import(/* webpackChunkName: "guide" */ '@/views/guide/index.vue'),
                name: '3',
                meta: {
                    title: '页面3',
                    icon: '#iconguide'
                }
            },
            {
                path: '4',
                component: () => import(/* webpackChunkName: "guide" */ '@/views/guide/index.vue'),
                name: '4',
                meta: {
                    title: '页面4',
                    icon: '#iconguide'
                }
            },
            {
                path: '5',
                component: () => import(/* webpackChunkName: "guide" */ '@/views/guide/index.vue'),
                name: '5',
                meta: {
                    title: '页面5',
                    icon: '#iconguide'
                }
            }
        ]
    }]


export default permissionRoutes